<!doctype html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="../css/common.css">
	<link rel="stylesheet" type="text/css" href="../css/page6.css">
</head>

<body>
	<main>
		<h2>视频鉴赏</h2>
		<header>
			<ul>
				<li>经典片段</a></li>
			</ul>
		</header>
		<p class="" align="center"><video src="../video/one.mp4" controls="controls" width="900" height="600"></video>
		</p>
	</main>
	<audio id="audioElementId" src="../video/dayv.ogg" autoplay="autoplay" loop="loop" hidden="true"
		style="display: none;">
		你的浏览器版本太低
	</audio>

	<script>
		function saveCurrentPlayTime() {
			var audioElement = document.getElementById("audioElementId");
			audioElement.currentTime = localStorage.getItem("bgMusicCurrentTime");
			audioElement.play();
			localStorage.setItem("bgMusicCurrentTime", audioElement.currentTime);
		}
		function setCurrentPlayTime() {
			var audioElement = document.getElementById("audioElementId");
			localStorage.setItem("bgMusicCurrentTime", audioElement.currentTime);
		}

		window.onload = saveCurrentPlayTime;
	</script>
</body>

</html>